package com.techsoul.module.pms.enmus;
  public enum WarehouseCheckStatusEnum {

    created("created", "新建盘点", "created", "新建盘点"),
    invaild("invaild", "盘点作废", "invaild", "盘点作废"),
        correct("correct", "盘点数量准确", "correct", "盘点数量准确"),
        qtyLess("qtyLess", "盘点数量未足", "qtyLess", "盘点数量未足"),
        qtyMore("qtyMore", "盘点数量超", "qtyMore", "盘点数量超"),
        needInBond("needInBond", "未办理入库", "needInBond", "未办理入库"),
        missing("missing", "丢失", "missing", "丢失");

      private final String eventCode;
        private final String eventName;
        private final String status;
        private final String statusName;

      WarehouseCheckStatusEnum(String eventCode, String eventName, String status, String statusName) {
        this.eventCode = eventCode;
        this.eventName = eventName;
        this.status = status;
        this.statusName = statusName;
        }

        public String getEventCode() {
        return eventCode;
        }

        public String getEventName() {
        return eventName;
        }

        public String getStatus() {
        return status;
        }

        public String getStatusName() {
        return statusName;
        }

        public static WarehouseCheckStatusEnum getEventEnum(String eventCode) {
        for (WarehouseCheckStatusEnum bean : WarehouseCheckStatusEnum.values()) {
        if (bean.getEventCode().equals(eventCode)) {
        return bean;
        }
        }
        return null;
        }
        }
